<template>
  <div>
    <div class="pingpai-box">
      <h3>品牌制造商直供</h3>
      <ul>
        <li v-for="item in brandList" :key="item.id">
          <img :src="item.pic_url" alt="" />
          <div class="img-box">
            <h4>{{ item.name }}</h4>
            <p>￥&nbsp;&nbsp;{{ item.floor_price }}&nbsp;&nbsp;元</p>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: ["brandList"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.pingpai-box {
  margin-top: 0.2rem;
  // margin-bottom: 0.1rem;
  width: 100%;
  text-align: center;
  background-color: #fff;
  h3 {
    font-size: 20px;
    line-height: 0.5rem;
  }
  ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    li {
      height: 1.17rem;
      width: 49%;
      background: pink;
      margin-bottom: 0.05rem;
      position: relative;
      img {
        width: 100%;
        height: 100%;
      }
      .img-box {
        position: absolute;
        left: 0.1rem;
        top: 0.1rem;
        font-size: 14px;
        p {
          text-align: left;
          margin-top: 0.1rem;
          color: #8b0000;
        }
      }
    }
  }
}
</style>